public async Task <ActionResult <Contractor> > EditOne(int id, [FromBody] Contractor editContractor)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                editContractor.CreatorId = userInfo.Id;
                editContractor.Id        = id;
                editContractor.Creator   = userInfo;
                return(Ok(_cservice.EditOne(editContractor)));
            }
            catch (System.Exception err)
            {
                return(BadRequest(err.Message));
            }
        }