Added A new API to get list of Industries from its master table
This commit is contained in:
parent
bda8cbc466
commit
85319cdf49
@ -131,5 +131,14 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
return Ok(ApiResponse<object>.SuccessResponse(null, "Activity Deleted Successfully", 200));
|
return Ok(ApiResponse<object>.SuccessResponse(null, "Activity Deleted Successfully", 200));
|
||||||
}
|
}
|
||||||
|
[HttpGet]
|
||||||
|
[Route("industries")]
|
||||||
|
public async Task<IActionResult> GetIndustries()
|
||||||
|
{
|
||||||
|
var tenantId = _userHelper.GetTenantId();
|
||||||
|
var industries = await _context.Industries.ToListAsync();
|
||||||
|
|
||||||
|
return Ok(ApiResponse<object>.SuccessResponse(industries, "Success.", 200));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user