public IHttpActionResult Get(int id, string UniqueID) { IUserBDC userBDC = (IUserBDC)BDCFactory.Instance.Create(BDCType.UserBDC); OperationResult <IUserDTO> item = userBDC.GetAllByID(UniqueID); UserDTO userDTO = new UserDTO(); if (item.IsValid()) { userDTO.UserID = item.Data.UserID; userDTO.UserName = item.Data.UserName; userDTO.AccountBalance = item.Data.AccountBalance; userDTO.BlockedAmount = item.Data.BlockedAmount; userDTO.Contact = item.Data.Contact; userDTO.DOB = item.Data.DOB; userDTO.Email = item.Data.Email; userDTO.UniqueUserId = item.Data.UniqueUserId; userDTO.image = item.Data.image; } return(Ok(userDTO)); }