public static Comment_Infra CommentFromDomainToInfra(this Comment_Domain @this)
 {
     if (@this != null)
     {
         return(new Comment_Infra()
         {
             Id = @this.Id,
             UserName = @this.UserName,
             UserId = @this.UserId,
             MessageFromUser = @this.MessageFromUser,
             ApprovalForPublishing = @this.ApprovalForPublishing
         });
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public void UpdateComment(Comment_Domain inst)
 {
     repository.UpdateComment(inst.CommentFromDomainToInfra());
 }
Exemplo n.º 3
0
 //Метод возвращает Id вновь созданного Отзыва
 public int?CreateComment(Comment_Domain inst)
 {
     return(repository.CreateComment(inst.CommentFromDomainToInfra()));
 }