public DiscountType Post(DiscountType discountType) { if (discountType == null || !ModelState.IsValid) { throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request"); } return(discountTypeService.SaveDiscountType(discountType.CreateFrom()).CreateFromm()); }