//****Mappers for multiple Comments models from API to DAL**** public static d.CommentEntity ToDal(this InsertComment comment) { return(new d.CommentEntity() { Title = comment.Title, Content = comment.Content, Value = comment.Value, MovieId = comment.MovieId, UserId = comment.UserId }); }
public IActionResult Create(InsertComment comment) { _repoCmt.Insert(comment.ToDal()); return(Ok()); }