public static FrontContentModel Map(FrontContent objModel) { return(new FrontContentModel { Id = objModel.Id, SectionId = objModel.SectionId, ContentId = objModel.ContentId, CreateDate = objModel.CreateDate }); }
public override bool Equals(object obj) { var card = obj as FlipCard; if (card is null) { return(false); } if (FrontContent.ToLower() != card.FrontContent.ToLower()) { return(false); } if (BackContent.ToLower() != card.BackContent.ToLower()) { return(false); } if (Id_Deck != card.Id_Deck) { return(false); } return(true); }