public HttpResponseMessage GetAllUser() { try { List <UserAPIModel> users = mapper.Map <List <UserAPIModel> >(userBDC.GetAllUser()); return(Request.CreateResponse(HttpStatusCode.OK, users)); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); return(Request.CreateResponse(HttpStatusCode.NotFound, e)); } }
//public OperationResult<IList<IUserDTO>> SearchCustomer(string nameSearch, string emailSearch, string contactSearch) //{ // IUserBDC UserBDC = (IUserBDC)BDCFactory.Instance.Create(BDCType.UserBDC); // return UserBDC.SearchCustomer(nameSearch, emailSearch, contactSearch); //} public OperationResult <IList <IUserDTO> > GetAllUser() { IUserBDC UserBDC = (IUserBDC)BDCFactory.Instance.Create(BDCType.UserBDC); return(UserBDC.GetAllUser()); }