Esempio n. 1
0
        public string MaintainEntity(int id, string body)
        {
            RepairRecord repairRecord = JSONHelper.JSONToObject <RepairRecord>(body);

            repairRecord.Id = id;
            RepairRecord res = fixtureService.MaintainRequest(repairRecord);

            if (res != null)
            {
                return(JSONHelper.ObjectToJSON(ResponseUtil.Ok(res)));
            }
            else
            {
                return(null);
            }
        }