public IActionResult CreateNewUser([FromBody] CreateNewUserAccountReq req) { var res = new SingleRsp(); res = _svc.CreateNewUser(req); return(Ok(res)); }
public IActionResult deleteUserName([FromBody] CreateNewUserAccountReq req) { var res = new SingleRsp(); res = _svc.RemoveUser(req); return(Ok(res)); }
public SingleRsp RemoveUser(CreateNewUserAccountReq req) { User dn = new User(); dn.Id = req.Id; dn.Roleid = req.Roleid; dn.Ho = req.Ho; dn.Ten = req.Ten; dn.Email = req.Email; dn.Sdt = req.Sdt; dn.Username = req.Username; dn.Password = req.Password; return(_rep.DeleteUser(dn)); }