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