Example #1
0
 //****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
     });
 }
Example #2
0
 public IActionResult Create(InsertComment comment)
 {
     _repoCmt.Insert(comment.ToDal());
     return(Ok());
 }