Пример #1
0
        /*Changing the last name by taking in the new last name and the index*/
        public HttpResponseMessage EditLName(string newName, int index)
        {
            HttpRequestMessage Request = new HttpRequestMessage();


            channel.EditLName(newName, index);                          //calling the data tier function
            logger.LogFunc("Changed the last name of index: " + index); //logging
            //Never a time when this fails
            return(Request.CreateErrorResponse(HttpStatusCode.OK, newName));
        }