public static DbEntity CoreModelToDbEntity(this CoreModel coreModel) { var dbEntity = new DbEntity() { Id = coreModel.Id, FirstUserId = coreModel.FirstUserId, SecondUserId = coreModel.SecondUserId, Liked = coreModel.Liked, Matched = coreModel.Matched }; return(dbEntity); }
public static CoreModel DbEntityToCoreModel(this DbEntity dbEntity) { var coreModel = new CoreModel() { Id = dbEntity.Id, FirstUserId = dbEntity.FirstUserId, SecondUserId = dbEntity.SecondUserId, Liked = dbEntity.Liked, Matched = dbEntity.Matched }; return(coreModel); }