public void Update(TransferTypeViewModel transferTypeVM)
 {
     var TransferType = new TransferType
     {
         TransferTypeId   = transferTypeVM.TransferTypeId,
         TransferTypeName = transferTypeVM.TransferTypeName
     };
 }
        public void Create(TransferTypeViewModel transferTypeVM)
        {
            var TransferType = new TransferType
            {
                TransferTypeName = transferTypeVM.TransferTypeName,
            };

            unitOfwork.TransferTypeRepository.Insert(TransferType);
            unitOfwork.Save();
        }
 public ActionResult Edit(TransferTypeViewModel transferTypeVM)
 {
     try
     {
         // TODO: Add update logic here
         transferTypeServices.Update(transferTypeVM);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
        public ActionResult Create(TransferTypeViewModel transferTypeVM)
        {
            try
            {
                // TODO: Add insert logic here

                transferTypeServices.Create(transferTypeVM);
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }