public JsonResult DeleteShift(string row)
        {
            TPO.Web.Core.ResponseMessage responseMessage;

            ProductionShiftModel productionShift = JsonConvert.DeserializeObject <ProductionShiftModel>(row);

            try
            {
                if (productionShift != null && productionShift.Id > 0)
                {
                    using (ProductionShiftService service = new ProductionShiftService())
                    {
                        service.Delete(productionShift.Id);
                    }
                }

                responseMessage = SetResponseMesssage(ActionTypeMessage.SuccessfulSave);
            }
            catch (Exception exc)
            {
                responseMessage = SetResponseMesssage(ActionTypeMessage.FailedSave, exc.Message);
            }

            productionShift.ResponseMessage = responseMessage;

            return(Json(productionShift, JsonRequestBehavior.AllowGet));
        }