public IActionResult Post([FromBody] CreatePresentationModel model) { var userId = GetUserId(); var presentationId = _presentationService.CreatePresentation(userId, model); return(Created(new Uri(Request.GetDisplayUrl()), presentationId)); }
public int CreatePresentation(int userId, CreatePresentationModel model) { return(_presentationRepository.CreatePresentation(userId, model.Name)); }