public async Task <HttpResponseMessage> DeleteCollateral(string id, string userlogin)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, new ArgumentNullException("id")));
            }
            try
            {
                Guid.Parse(id);
            }
            catch (Exception e)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, e));
            }

            try
            {
                var res = await _service.DeleteCollateralAsync(id, userlogin);

                await _unitOfWorkAsync.SaveChangesAsync();

                return(Request.CreateResponse(HttpStatusCode.OK, res));
            }
            catch (Exception e)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, e));
            }
        }