public RecordClaimResult recordClaim(string providerNumber, string memberNumber, string serviceCode, string comments, DateTime dateServiceProvided) { String result = claimService.addClaim(providerNumber, memberNumber, serviceCode, comments, dateServiceProvided); if (!String.IsNullOrWhiteSpace(result)) { return(new RecordClaimResult() { success = false, message = result }); } ServiceViewModel serviceViewModel = ServiceViewModel.fromService(serviceService.getServiceByCode(serviceCode)); return(new RecordClaimResult() { success = true, service = serviceViewModel }); }
public ServiceViewModel getService(string code) { return(ServiceViewModel.fromService(serviceService.getServiceByCode(code))); }