public IActionResult Create(business.ViewModels.Account model) { model = account.Create(model); if (model != null) { return(Ok(model)); } return(BadRequest()); }
public IActionResult Change([FromBody] business.ViewModels.Account model) { model = account.Update(model); if (model != null) { return(Ok(model)); } return(BadRequest()); }
public IActionResult Post([FromBody] business.ViewModels.Account account) { var acc = this.domain.Post(account); return(Ok(acc)); }