public IActionResult Create(MoviePremier moviePremier) { if (!UserIsInRole(UserTypeEnum.Admin)) { return(Unauthorized("You are not in role to permit this action")); } _service.Insert(moviePremier); return(Ok(moviePremier)); }
public bool Update(MoviePremier moviePremier) { _repository.Update(moviePremier); return(_repository.SaveChanges()); }
public bool Insert(MoviePremier moviePremier) { _repository.Create(moviePremier); return(_repository.SaveChanges()); }