Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <ActionResult> SaveRoomType(RoomTypeViewModel model) { if (!ModelState.IsValid) { if (model.Id == 0) { return(View("AddRoomType", model)); } return(View("EditRoomType", model)); } await _accommodationService.SaveRoomTypeAsync(model.ToEntity()).ConfigureAwait(false); return(RedirectToAction("Index", new { projectId = model.ProjectId })); }