示例#1
0
 public IActionResult Registration([FromBody] DAL.Model.DataTransferObjects.UserDTO udto)
 {
     try
     {
         _user.Registration(udto);
         return(Ok());
     }
     catch (ApplicationException ex)
     {
         return(BadRequest(ex.Message));
     }
 }
示例#2
0
 public ActionResult <string> Register(DAL.Model.DataTransferObjects.UserDTO udto)
 {
     _user.Registration(udto);
     return("");
 }