Ejemplo n.º 1
0
        public async Task <IActionResult> GetEntityList([FromQuery] UserInfoEditRequest entityObject = null)
        {
            UserInfo dataObject = new UserInfo(entityObject);

            APIResponse = await baseService.GetEntityList(dataObject);

            return(Ok(APIResponse));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> UpdateEntity([FromBody] UserInfoEditRequest entityObject)
        {
            UserInfo dataObject = new UserInfo(entityObject);

            APIResponse = await baseService.UpdateEntity(dataObject);

            return(Ok(APIResponse));
        }
Ejemplo n.º 3
0
 public UserInfo(UserInfoEditRequest objEditRequestObject)
 {
     Id       = objEditRequestObject.Id;
     FullName = objEditRequestObject.FullName;
     IsActive = objEditRequestObject.IsActive;
     Age      = objEditRequestObject.Age;
     Email    = objEditRequestObject.Email;
     Phone    = objEditRequestObject.Phone;
 }