public ActionResult EditClothingType(ClothingTypeDto clothingTypeDto) { ClothingType clothingType = _session.Load<ClothingType>(clothingTypeDto.Id); clothingType = Mapper.Map<ClothingTypeDto, ClothingType>(clothingTypeDto, clothingType); _session.Save(clothingType, clothingTypeDto.Id); return RedirectToAction("Index"); }
public ActionResult CreateClothingType(ClothingTypeDto clothingTypeDto) { ClothingType clothingType = Mapper.Map<ClothingTypeDto, ClothingType>(clothingTypeDto); _session.Save(clothingType); return RedirectToAction("Index"); }