public FoodDishTableEntity Replace(IFoodDish incommingFoodDish) { Name = incommingFoodDish.Name; Description = incommingFoodDish.Description; FromWho = incommingFoodDish.FromWho; return(this); }
public static FoodDishTableEntity Convert(IFoodDish foodDish) { var guid = Guid.NewGuid().ToString(); return(new FoodDishTableEntity() { Description = foodDish.Description, FromWho = foodDish.FromWho, Name = foodDish.Name, PartitionKey = Constants.PartitionKey, RowKey = guid }); }