示例#1
0
 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));
     }
 }
示例#2
0
        //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());
        }