예제 #1
0
 public ResponseObject <Company> GetCompanyDetails(int companyId)
 {
     return(response
            .Make(() => dbContext
                  .GetCompanyDetails(companyId)
                  .ToCompanyViewModel()));
 }
예제 #2
0
 public ResponseObject <User> Save([FromBody] User user)
 {
     return(response.Make(() => SaveUser(user)));
 }
예제 #3
0
 public ResponseObject <IEnumerable <State> > GetList()
 {
     return(response.Make(() => dbContext.GetStates()));
 }