public async Task <ActionResult <ServiceDetails> > GetServiceDetails(int serviceid) { try { var result = await Task.FromResult(serviceDetailsRepository.GetServiceDetails(serviceid)); return(Ok(result)); } catch (Exception ex) { logger.LogError($"Exception at Login Method: {ex}"); return(StatusCode(500, "Internal server error")); } }
/// <summary> /// Gets the service details. /// </summary> /// <param name="servicesID">The services identifier.</param> /// <param name="moduleComponentID">The module component identifier.</param> /// <returns></returns> public Response <ServiceDetailsModel> GetServiceDetails(int servicesID, long moduleComponentID) { return(_serviceDetailsRepository.GetServiceDetails(servicesID, moduleComponentID)); }